package com.enhe.gck.communal;

public enum PublicEnum {

    PublicEnum();
    public enum Capital {
        A,B,C,D,E,F,G,H,J,K,M,N,P,Q,R,T,U,V,W,X,Y;
    }
    public enum Currency {
        USD("USD",366756150136053760L),
        CDF("CDF",366756223150497792L);
        private final String code;
        private final long name;
        Currency(String code,long name){
            this.code = code;
            this.name = name;
        }
        public String getCode(){
            return this.code;
        }
        public long getName(){
            return this.name;
        }

        public static String getCode(long name){
            for(Currency currency : Currency.values()){
                if(currency.getName() == name){
                    return currency.getCode();
                }
            }
            return null;
        }
    }

    public enum OrderHeader {
        RM("RM","充值"),
        OR("OR","订单"),
        WE("WE","过磅"),
        SM("SM","供货"),
        PM("PM","倒料"),
        FV("FV","发票"),
        ;

        private final String code;
        private final String name;
        OrderHeader(String code,String name){
            this.code = code;
            this.name = name;
        }
        public String getCode(){
            return this.code;
        }
        public String getName(){
            return this.name;
        }
    }

    public enum DateString {
        date1("yyyy-MM-dd","日期-"),
        date11("yyyy-MM-dd hh:mm:ss","日期-时间"),
        date2("yyyy/MM/dd","日期/"),
        date3("yyyyMMdd","日期"),


        date4("dd-MMM-yyyy","日期"),

        ;


        private final String code;
        private final String name;
        DateString(String code,String name){
            this.code = code;
            this.name = name;
        }
        public String getCode(){
            return this.code;
        }
        public String getName(){
            return this.name;
        }
    }

    public enum LoggerHeader {
        main("main","业务处理-"),

        ;

        private final String code;
        private final String name;
        LoggerHeader(String code,String name){
            this.code = code;
            this.name = name;
        }
        public String getCode(){
            return this.code;
        }
        public String getName(){
            return this.name;
        }
    }

    public enum FileType {
        pdf("pdf","pdf"),

        ;

        private final String code;
        private final String name;
        FileType(String code,String name){
            this.code = code;
            this.name = name;
        }
        public String getCode(){
            return this.code;
        }
        public String getName(){
            return this.name;
        }
    }
}
